const { Controller } = require('egg');

class HomeController extends Controller {
  async info() {
    const { ctx } = this;
    ctx.body = '用户信息';
  }
  async addUser() {
    const { ctx } = this;
    ctx.body = '新增用户';
    await ctx.model.User.create({
      username: 'kun',
      pwd: '123456',
    });
  }
}

module.exports = HomeController;
